# -*- coding:utf-8 -*-
'''
@File    :   config.py
@Time    :   2024/11/16 20:32:54
@Author  :   xiangyu Chen
@Version :   1.0
@Contact :   yu112yu@sina.com
@License :   (C)Copyright 2017-2018, Liugroup-NLPR-CASIA
@Desc    :   None
'''

# config.py
USERNAME = 'testuser'
PASSWORD = 'testuser'
HOSTNAME = "127.0.0.1"
PORT = '3306'
DATABASE = 'xag'
 
DIALECT = 'mysql'
DRIVER = 'pymysql'
 
# 连接数据的URI
DB_URI = "{}+{}://{}:{}@{}:{}/{}?charset=utf8".format(DIALECT, DRIVER, USERNAME, PASSWORD, HOSTNAME, PORT, DATABASE)
 
SQLALCHEMY_DATABASE_URI = DB_URI
 
SQLALCHEMY_TRACK_MODIFICATIONS = True
 
SWAGGER_TITLE = "API"
SWAGGER_DESC = "API接口"
# 地址，必须带上端口号
SWAGGER_HOST = "localhost:5000"